dojo.provide("miaigo.view.NavigationView");

dojo.require("miaigo.view.BaseView");
dojo.require("dijit._Templated");
dojo.require("dijit.form.Button");

dojo.declare(
    "miaigo.view.NavigationView",
    [miaigo.view.BaseView, dijit._Templated],
    {
	widgetsInTemplate: true,
	templateString:
	    "<div>" +
	        "<div dojoAttachPoint='containerNode'>" +
	            "<div dojoType='dijit.form.Button' dojoAttachPoint='prevButton' dojoAttachEvent='onClick:onPrev' label='Prev' iconClass='prevIcon'></div>" +
	            "<div dojoType='dijit.form.Button' dojoAttachPoint='nextButton' dojoAttachEvent='onClick:onNext' label='Next' iconClass='nextIcon'></div>" +
	        "</div>" +
	    "</div>",

	baseClass: "navigationPane",

	_connDefs:
	{
	    inbound:
	    [
		{ event: "onCurrentMoveChanged", method: "onMove" }
	    ],
	    outbound:
	    [
		{ event: "onNext", method: "nextMove" },
		{ event: "onPrev", method: "prevMove" }
	    ],
	},

	// handlers

	onNext: function()
	{
	},

	onPrev: function()
	{
	},

	onMove: function(/* miaigo.model.Move */move)
	{
	    console.debug(move);
	}
    });